<?php

namespace App\Models\System;

use Illuminate\Database\Eloquent\Model;

class Region extends Model
{
    const LEVEL = 2;

    protected $table = 'regions';

    protected $fillable = ['parent_id', 'name', 'level', 'initials'];

    public function parent()
    {
        return $this->belongsTo(self::class, 'parent_id');
    }
}
